/*
 * 2014-11-29 <br/>
 * 
 */
package cn.bs.user.action;

import cn.bs.base.action.BaseAction;
import cn.bs.user.eo.UserEO;
import cn.bs.user.service.IUserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("userDo")
public class UserAction extends BaseAction{
   @Resource
   private IUserService userService;
   @RequestMapping("save")
   @ResponseBody
   public Object save(@RequestBody UserEO userEO){
       userService.save(userEO);
       return success(userEO);
   }

    @RequestMapping("getEl")
    @ResponseBody
    public Object getEl(Long id) {
        return success("userEO");
    }
}
